﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BlogApp.Models
{
    public class Blog
    {

        public string Name { get; set; }
        public string Topic { get; set; }
        public string Post { get; set; }

        private static int blogID = 0;
        private int id;
        public int BlogID
        {
            get { return id; }
        }

        public Blog(string name, string topic, string post)
        {
            Name = name;
            Topic = topic;
            Post = post;
            id = blogID++;
        }
    }
}